package com.kikcn.demo.dao;

import com.kikcn.demo.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * User: wlai
 * Date: 4/9/15
 * Time: 16:17 PM
 */
@Repository
public interface UserRepository extends JpaRepository<User,Integer>{
    public User findUserByNameAndPassword(String name,String password);
    public User findByName(String name);
}
